import request from '@/router/axios';
// 已绑定列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-oem/oem/terminal/terminal/proPage',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

// 未绑定
export const getUNList = (params) => {
  return request({
    url: '/api/rb-oem/oem/terminal/terminal/terListUnBind',
    method: 'get',
    params
  })
}

// 解绑终端设备
export const remove = (row) => {
  return request({
    url: '/api/rb-oem/oem/terminal/terminal/staffUNBindPro',
    method: 'post',
    data: row
  })
}

// 绑定设备
export const add = (row) => {
  return request({
    url: '/api/rb-oem/oem/terminal/terminal/staffBindPro',
    method: 'post',
    data: row
  })
}


